package com.example.administrator.basepro.model.http.api;

import com.example.administrator.basepro.model.bean.LoginBean;
import com.example.administrator.basepro.model.bean.TableBean;

import io.reactivex.Flowable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by codeest on 2016/8/2.
 * 知乎APIs
 */
public interface HangkongApis {

//    String HOST = "http://47.94.104.171/";

    String HOST = "http://39.108.188.95/";

    /**
     * 启动界面图片
     */
     @POST("user/app/register")
    Flowable<LoginBean> register(@Body RequestBody json);

    @POST("user/app/login")
    Flowable<LoginBean> login(@Body RequestBody requestBody);

    @POST("user/getAllTable")
    Flowable<TableBean> getAllTable();

    @POST("user/appAddTable")
    Flowable<LoginBean> addTable(@Body RequestBody bean);
}
